﻿Imports JuegosLanBackend

Public Class ListarEmpleado

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        Dim part As New EmpleadoNegocio

        Dim empleado = part.listar()
        Me.DataGridView1.DataSource = Empleado
        Me.DataGridView1.EditMode = False
        Me.DataGridView1.Columns(0).HeaderText = "idEmpleado"
        Me.DataGridView1.Columns(1).HeaderText = "Nombre"
        Me.DataGridView1.Columns(2).HeaderText = "Apellido"
        Me.DataGridView1.Columns(3).HeaderText = "DNI"
        Me.DataGridView1.Columns(4).HeaderText = "Direccion"
        Me.DataGridView1.Columns(5).HeaderText = "Telefono"
        Me.DataGridView1.Columns(6).HeaderText = "Sexo"
        Me.DataGridView1.Columns(7).HeaderText = "Fecha Nacimiento"
    End Sub

    Private Sub DataGridView1_CellContentClick(ByVal sender As System.Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellContentClick

    End Sub
End Class